package com.passion.fs.context;

import com.passion.fs.config.LocalFsConfig;
import com.passion.fs.service.FileInfoService;
import com.passion.fs.service.LocalFsService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 类描述：本地文件服务上下文
 *
 * @author ZhuYin
 * @since 2025年01月06日
 */
@ConditionalOnBean(LocalFsConfig.class)
@Component
public class LocalFsContext {

    public static FileInfoService fileInfoService;

    @Resource
    public void setFileInfoService(FileInfoService fileInfoService) {
        LocalFsContext.fileInfoService = fileInfoService;
    }

    public static LocalFsService localFsService;
    @Resource
    public void setLocalFsService(LocalFsService localFsService) {
        LocalFsContext.localFsService = localFsService;
    }

}
